package com.isky.visual.func.service.impl;

import com.isky.visual.func.entity.MashupT;
import com.isky.visual.func.mapper.MashupTMapper;
import com.isky.visual.func.service.IMashupTService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.isky.visual.result.CodeMsg;
import com.isky.visual.result.ResultVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wudl
 * @since 2020-04-28
 */
@Service
public class MashupTServiceImpl extends ServiceImpl<MashupTMapper, MashupT> implements IMashupTService {

    @Override
    public ResultVo<List<MashupT>> getListMashup() {
        List<MashupT> mashupTS = baseMapper.selectList(null);
        if (mashupTS.size()==0)
        {
            return ResultVo.error(CodeMsg.DATASTORE_QUERY_ERROE);
        }
        return ResultVo.success(mashupTS);
    }
}
